package com.kakarote.hrm.mapper;

import com.kakarote.core.servlet.BaseMapper;
import com.kakarote.hrm.entity.BO.export.EmployeeContactsExportBO;
import com.kakarote.hrm.entity.PO.HrmEmployeeContacts;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 员工联系人 Mapper 接口
 * </p>
 *
 * @author huangmingbo
 * @since 2020-05-12
 */
public interface HrmEmployeeContactsMapper extends BaseMapper<HrmEmployeeContacts> {

    Integer verifyUnique(@Param("fieldName") String fieldName, @Param("value") String value, @Param("contactsId") Long contactsId);

    List<EmployeeContactsExportBO> searchByEmployeeId(@Param("employeeIdList") List<Long> employeeIdList);

    List<Map<String, Object>> queryEmployeeContactsListMap(@Param("employeeIds") List<Long> employeeIds);

}
